package com.medium.house.request;

import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Author : wang.yu
 * @Description :
 * @Date: Created in 2018/1/31 0031  10:40
 * @Modified By
 */
@Data
public class WechatAuthUserRequestDto implements Serializable {
    @NotBlank(message = "openid不能为空")
    private String openid;

    @NotBlank(message = "手机号码不能为空")
    @Length(min=11, max=11, message="手机号码长度必须为11位")
    private String mobile;

    @NotNull(message = "姓名不能为空")
    private String name;
}
